alias apt-get=brew
echo y | sudo apt-get install ranger              # ranger 的主程序
echo y | sudo apt-get install caca-utils          # img2txt 图片
echo y | sudo apt-get install highlight           # 代码高亮
echo y | sudo apt-get install atool　             # 存档预览
echo y | sudo apt-get install w3m                 # html页面预览
echo y | sudo apt-get install poppler-utils       # pdf预览
echo y | sudo apt-get install mediainfo           # 多媒体文件预览
echo y | sudo apt-get install catdoc              # doc预览
echo y | sudo apt-get install docx2txt            # docx预览
echo y | sudo apt-get install xlsx2csv            # xlsx预览
echo y | sudo apt-get install mupdf-tools         # pdf预览
echo y | sudo apt-get install ffmpegthumbnailer   # mp4预览
echo y | sudo apt-get install bat   # 打开文件预览

if [[ ! -z $1 ]] && [[ -d $1 ]] && [[ -z ${unline_path} ]]
then
PREHOME=$1
elif [[ ! -z ${unline_path} ]]
then
PREHOME=${unline_path}
else
PREHOME=${HOME}"/unline"
fi
# copy all configuration

# ranger --copy-config=all
cp -rvf  ${PREHOME}/ranger ~/.config/
